from flask_restful import Api

from app.api.interface_create_job import InterfaceCreateJob
from app.api.interface_pause_job import InterfacePauseJob
from app.api.interface_restart_job import InterfaceRestartJob

api = Api()

# 任务的地址映射
api.add_resource(InterfaceCreateJob, '/cyberspace/createJob')
api.add_resource(InterfacePauseJob, '/cyberspace/pauseJob/<string:job_id>')
api.add_resource(InterfaceRestartJob, '/cyberspace/restartJob/<string:job_id>')

